package com.csi.bumblebee.mapper;

import com.csi.bumblebee.domain.dictionary.EducationBackground;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 学历
 * @author yeebs
 */
@Mapper
public interface EducationBackgroundMapper {

    /**
     * 根据id查询排序比重
     * @param id educationBackground表主键id
     * @return EducationBackground对象
     */
    EducationBackground findLevelById(String id);

    /**
     * 查询全部
     * @return List<EducationBackground>
     */
    List<EducationBackground> list();

    /**
     * 删除一行记录
     * @param id 主键
     * @return 影响行数
     */
    int deleteByPrimaryKey(String id);

    /**
     * 插入一行
     * @param educationBackground  EducationBackground对象
     * @return 影响行数
     */
    int insertSelective(EducationBackground educationBackground);

    /**
     * 更新
     * @param educationBackground EducationBackground对象
     * @return 影响行数
     */
    int updateByPrimaryKeySelective(EducationBackground educationBackground);

}
